package com.example.vueapi.vueapi.service;

import com.example.vueapi.vueapi.bean.SysUser;
import com.example.vueapi.vueapi.repository.SysUserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

@Service
public class SysUserService {

    @Autowired
    private SysUserRepository sysUserRepository;

    public Page<SysUser> getUserListPage(Pageable pageable, Example<SysUser> example) {
        return sysUserRepository.findAll(example, pageable);
    }
}
